import 'package:get/get.dart';

import 'app_web_state.dart';

/// @description:
/// @author
/// @date: 2023-12-15 10:30:14
class AppWebLogic extends GetxController {
  final state = AppWebState();

  @override
  void onInit() {
    super.onInit();
    if (Get.arguments != null &&
        Get.arguments is Map &&
        Get.arguments.keys.toList().contains('url')) {
      state.url = Get.arguments['url'];
      state.title = Get.arguments['title'] ?? '';
    }
  }
}
